Nullable Coalescing Operator can be used with reference types and nullable value types. So if the first operand of the expression is null then the value of second operand is assigned to the variable. For example,
Int?
myFirstno = null; Int no.; no= myFirstno
?? 1;
Liked By
Write Answer
How to use “Nullable Coalescing Operator” (??) in C#?
Join MindStick Community
You have need login or register for voting of answers or question.
Sushant Mishra
17-Jul-2017Nullable Coalescing Operator can be used with reference types and nullable value types. So if the first operand of the expression is null then the value of second operand is assigned to the variable. For example,